---@class BuffEffect285100 : BaseBuffEffect
BuffEffect285100 = ClientFight.CreateClass("BuffEffect285100", ClientFight.BaseBuffEffect)
local t = BuffEffect285100

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local amount = 0;
    local fighter = buff.target;
    local effectVal = buff.buffBean.f_BuffEffectValue;
    for k, f in pairs(fight.teams[fighter.teamIndex].fighters) do
        if (f:isDie()) then
            goto continue;
        end
        if (f.isRealSummons()) then
            amount = amount + 1;
        end
        :: continue ::
    end
    local add = math.min(amount * effectVal[1], effectVal[2]);
    buff.attributes.attributes[FighterAttributeEnum.ATK_PER.id] = add;
    ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
    return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
end

t.New()